package main

import (
	"fmt"
	"reflect"
)

func main() {
	var x float32 = 3.4
	v := reflect.ValueOf(x) //获取x的Value对象
	fmt.Println("type:", v.Type())
	fmt.Println("kind == float64:", v.Kind() == reflect.Float64)
	fmt.Println("value:", v.Float())
}
